//
//  RedefineHeader.h
//  aMoment
//
//  Created by dllo on 15/9/30.
//  Copyright © 2015年 LuckyHan. All rights reserved.
//

#ifndef RedefineHeader_h
#define RedefineHeader_h

#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height
#define FIT_WIDTH SCREEN_WIDTH / 375
#define FIT_HEIGHT SCREEN_HEIGHT / 667

#define X frame.origin.x
#define Y frame.origin.y
#define Width frame.size.width
#define Height frame.size.height

#define FONTSIZE_SMALL 13.0
#define FONTSIZE_MIDDLE 15.0
#define IMAGE_32 32.0 * FIT_WIDTH
#define IMAGE_16 16.0 * FIT_WIDTH

#define FONTCOLOR_GRAY [UIColor darkGrayColor]

//首页
#define URLSTRING_HOME @"http://api2.pianke.me/pub/today"
#define BODYSTRING_HOME @"start=0&limit=10&client=2"

//电台
#define URLSTRING_RADIO @"http://api2.pianke.me/ting/radio"
#define BODYSTRING_RADIO @"client=2"
#define URLSTRING_RADIO_DETAILS @"http://api2.pianke.me/ting/radio_detail"
#define BODYSTRING_RADIO_DEATILS [NSString stringWithFormat:@"start=%ld&limit=10&radioid=%@&client=2", self.start, _radioID]

//阅读
#define URLSTRING_READ @"http://api2.pianke.me/read/columns"
#define BODYSTRING_READ @"client=2"
#define URLSTRING_READ_DETAILS @"http://api2.pianke.me/read/columns_detail"
#define BODYSTRING_READ_DETAILS_HOT [NSString stringWithFormat:@"start=0&limit=10&client=2&typeid=%@&sort=hot", _type]//最热
#define BODYSTRING_READ_DETAILS_NEW [NSString stringWithFormat:@"start=0&limit=10&client=2&typeid=%@&sort=addtime", _type]//最新

//社区
#define URLSTRING_COMMUNITY_TOPIC @"http://api2.pianke.me/group/posts_hotlist"
#define URLSTRING_COMMUNITY_GROUP @"http://api2.pianke.me/group/group_list"
#define BODYSTRING_COMMUNITY_HOT [NSString stringWithFormat:@"start=%ld&limit=10&client=2&sort=hot", _start]//最热
#define BODYSTRING_COMMUNITY_NEW [NSString stringWithFormat:@"start=%ld&limit=10&client=2&sort=addtime", _start]//最新

//碎片
#define URLSTRING_TIMELINE @"http://api2.pianke.me/timeline/list"
#define BODYSTRING_TIMELINE @"start=0&limit=10&client=2"

//良品
#define URLSTRING_STORE @"http://api2.pianke.me/pub/shop"
#define BODYSTRING_STORE @"start=0&limit=10&client=2"
#define URLSTRING_STORE_DETAILS @"http://api2.pianke.me/group/posts_info"
#define BODYSTRING_STORE_DETAILS [NSString stringWithFormat:@"contentid=%@&client=2", _contentID]

#endif /* RedefineHeader_h */
